﻿using System;
using SqlSugar;
using static PLM.ConfigurationCenter.Model.Extensions;

namespace PLM.ConfigurationCenter.Model {
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("Task")]
    public class TaskModel {
        /// <summary>
        /// 标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string UuId { get; set; }
        /// <summary>
        /// 服务器地址
        /// </summary>
        public string ServerAddress { get; set; }
        /// <summary>
        /// 数据库
        /// </summary>
        public string DataBase { get; set; }
        /// <summary>
        /// 数据库类型
        /// </summary>
        public int DataBaseType { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 执行周期
        /// </summary>
        public int Times { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsUse { get; set; }
        /// <summary>
        /// 添加、修改时间
        /// </summary>
        public DateTime? PostTime { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class TimesModel {
        public int key { get; set; }
        public string Name { get; set; }
    }
}
